class welcome_logic :
    def __init__ ( self , mediator ) :
        self . _awake = False
        self . _mediator = mediator
    def show_welcome ( self ) :
        self . _awake = True
    def hide_welcome ( self ) :
        self . _awake = False
    def on_mouse_button_1 ( self ) :
        self . _finish_welcome ( )
    def on_any_key ( self ) :
        self . _finish_welcome ( )
    def on_key_up ( self ) :
        self . _finish_welcome ( )
    def on_key_down ( self ) :
        self . _finish_welcome ( )
    def on_key_return ( self ) :
        self . _finish_welcome ( )
    def on_key_escape ( self ) :
        self . _finish_welcome ( )
    def _finish_welcome ( self ) :
        if self . _awake :
            self . _mediator . on_welcome_finished ( )
